package com.jy.framework.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import com.jy.framework.config.json.MyBeanSerializerModifier;
import com.jy.framework.utils.os.ConditionOS;
import com.jy.framework.utils.os.OSProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

/**
 * @Author: JuiceYan
 * @Description: 项目配置
 * @Class: MyConfig
 * @Date: 16:15 2018/12/11
 */
@Configuration
public class MyOSSConfig {

    @Bean
    @Conditional(ConditionOS.ConditionLinux.class)
    public OSProperties linuxProperties() {
        return new OSProperties.LinuxProperties();
    }

    @Bean
    @Conditional(ConditionOS.ConditionWindows.class)
    public OSProperties conditionWindows() {
        return new OSProperties.WindowsProperties();
    }

}
